home *** CD-ROM | disk | FTP | other *** search
/ Amiga Plus 2004 #11 / Amiga Plus CD - 2004 - No. 11.iso / AmiSoft / Dev / misc / temgen.lha / Temgen / Amigamain / Example3 / app.c < prev    next >
C/C++ Source or Header  |  2004-06-26  |  530b  |  32 lines

  1. /*
  2.    shows the use of locale feature
  3.    the german catalog has reversed order of arguments
  4. */
  5.  
  6. #define CATCOMP_NUMBERS
  7.  
  8. #include "app_strings.h"
  9.  
  10. #include "app.h"
  11. #include "amigamain.h"
  12.  
  13. #include <stdio.h>
  14.  
  15. extern STRPTR GetString(struct LocaleInfo *li, LONG stringNum);
  16.  
  17. void APP_run(void)
  18. {
  19.     messagef_loc(MSG_SWAP_DEMO, "'STRING'", 77777);
  20.  
  21.     show_request( "Title",
  22.         GetString(&li, MSG_SWAP_DEMO),
  23.         GetString(&li, MSG_OK),
  24.         "'STRING'", 42);
  25. }
  26.  
  27. void APP_clean(void)
  28. {
  29.     messagef("\nAPP_clean\n");
  30. }
  31.  
  32.